package com.vpx.server.service.system.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import com.vpx.server.bean.entity.CProjectAttr;
import com.vpx.server.mapper.system.CProjectAttrMapper;
import com.vpx.server.service.system.CProjectAttrService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @author Administrator
* @description 针对表【c_project_attr】的数据库操作Service实现
* @createDate 2023-11-18 22:32:44
*/
@Service
public class CProjectAttrServiceImpl extends ServiceImpl<CProjectAttrMapper, CProjectAttr>
    implements CProjectAttrService {
    @Autowired
    private CProjectAttrMapper mapper;
    @Override
    public void insert(CProjectAttr c) {
       mapper.add(c);
    }

    @Override
    public List<CProjectAttr> selectAll() {
        return mapper.selectAll();
    }

    @Override
    public void delete(CProjectAttr c) {
    baseMapper.deleteById(c);
    }

    @Override
    public void update(CProjectAttr c) {
    baseMapper.updateById(c);
    }
}




